package com.hly.musicbackground.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hly.musicbackground.domain.FictionChapter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface FictionChapterDao extends BaseMapper<FictionChapter> {

    @Select("select * from fiction_chapter where fiction_id = #{fictionId} order by chapter_num desc limit 0,1")
    FictionChapter getNewChapter(int fictionId);

}
